package com.hdw.med.bean.model;

import java.io.Serializable;
import java.util.Date;

public class MdBaseDict implements Serializable {
    private static final long serialVersionUID = 1L;

    private String idDict;

    private String cd;

    private String na;

    private String des;

    private Date dtSysCre;

    private Date dtSysModi;

    public String getIdDict() {
        return idDict;
    }

    public void setIdDict(String idDict) {
        this.idDict = idDict;
    }

    public String getCd() {
        return cd;
    }

    public void setCd(String cd) {
        this.cd = cd;
    }

    public String getNa() {
        return na;
    }

    public void setNa(String na) {
        this.na = na;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Date getDtSysCre() {
        return dtSysCre;
    }

    public void setDtSysCre(Date dtSysCre) {
        this.dtSysCre = dtSysCre;
    }

    public Date getDtSysModi() {
        return dtSysModi;
    }

    public void setDtSysModi(Date dtSysModi) {
        this.dtSysModi = dtSysModi;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdBaseDict other = (MdBaseDict) that;
        return (this.getIdDict() == null ? other.getIdDict() == null : this.getIdDict().equals(other.getIdDict()))
            && (this.getCd() == null ? other.getCd() == null : this.getCd().equals(other.getCd()))
            && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa()))
            && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes()))
            && (this.getDtSysCre() == null ? other.getDtSysCre() == null : this.getDtSysCre().equals(other.getDtSysCre()))
            && (this.getDtSysModi() == null ? other.getDtSysModi() == null : this.getDtSysModi().equals(other.getDtSysModi()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdDict() == null) ? 0 : getIdDict().hashCode());
        result = prime * result + ((getCd() == null) ? 0 : getCd().hashCode());
        result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
        result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
        result = prime * result + ((getDtSysCre() == null) ? 0 : getDtSysCre().hashCode());
        result = prime * result + ((getDtSysModi() == null) ? 0 : getDtSysModi().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idDict=").append(idDict);
        sb.append(", cd=").append(cd);
        sb.append(", na=").append(na);
        sb.append(", des=").append(des);
        sb.append(", dtSysCre=").append(dtSysCre);
        sb.append(", dtSysModi=").append(dtSysModi);
        sb.append("]");
        return sb.toString();
    }
}